package javaStudy.io流;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
//3.复制文本
public class CopyTexDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis =new FileInputStream("D:\\itcast\\窗里窗外.txt");
        FileOutputStream fos =new FileOutputStream("窗里窗外.txt");
        int by;
        while((by=fis.read())!=-1){
            fos.write(by);
        }
        fis.close();
        fos.close();
    }
}
